<%@ page import="grailsweb.Movie" %>



<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'actors', 'error')} ">
	<label for="actors">
		<g:message code="movie.actors.label" default="Actors" />
		
	</label>
	<g:textField name="actors" value="${movieInstance?.actors}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'country', 'error')} ">
	<label for="country">
		<g:message code="movie.country.label" default="Country" />
		
	</label>
	<g:textField name="country" value="${movieInstance?.country}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'director', 'error')} ">
	<label for="director">
		<g:message code="movie.director.label" default="Director" />
		
	</label>
	<g:textField name="director" value="${movieInstance?.director}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'duration', 'error')} ">
	<label for="duration">
		<g:message code="movie.duration.label" default="Duration" />
		
	</label>
	<g:textField name="duration" value="${movieInstance?.duration}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'movieType', 'error')} required">
	<label for="movieType">
		<g:message code="movie.movieType.label" default="Movie Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="movieType" name="movieType.id" from="${grailsweb.MovieType.list()}" optionKey="id" required="" value="${movieInstance?.movieType?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="movie.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${movieInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'summary', 'error')} ">
	<label for="summary">
		<g:message code="movie.summary.label" default="Summary" />
		
	</label>
	<g:textField name="summary" value="${movieInstance?.summary}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: movieInstance, field: 'time', 'error')} ">
	<label for="time">
		<g:message code="movie.time.label" default="Time" />
		
	</label>
	<g:textField name="time" value="${movieInstance?.time}"/>
</div>

